﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.Data
{
    /// <summary>
    /// 用户 邀请码 马力值 红钻
    /// </summary>
    public class RedRecord {
        public RedRecord() {
        }
        public long Id { get; set; }
        /// <summary>
        /// 商户id
        /// </summary>
        public long MerchantId { get; set; }
        /// <summary>
        /// 马力值
        /// </summary>
        public int TotalHorsePower { get; set; }
        /// <summary>
        /// 红钻数
        /// </summary>
        public decimal TotalRedDrill { get; set; }
        /// <summary>
        /// 消费的红钻总数
        /// </summary>
        public decimal ConsumeRedDrill { get; set; }
        /// <summary>
        /// 冻结红钻数
        /// </summary>
        public decimal FrozenRedDrill { get; set; }
        /// <summary>
        /// 邀请码
        /// </summary>
        public string InvitationCode { get; set; }
        /// <summary>
        /// 每日发放的时间和红钻
        /// </summary>
        public string DayRedDrill { get; set; }
        /// <summary>
        /// 创建时间
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 注册时间
        /// </summary>
        public long RegisterTime { get; set; }
        /// <summary>
        /// 下一次生产时间
        /// </summary>
        public long NextProductionTime { get; set; }
        /// <summary>
        /// 邀请码使用次数
        /// </summary>
        public int InvitationCodeNum { get; set; }

        /// <summary>
        /// 是否生成注册后生成时间
        /// </summary>
        public bool IsFinish { get; set; }
        /// <summary>
        /// 乐观并发
        /// </summary>
        public byte[] RowVersion { get; set; }
        /// <summary>
        /// 商户信息
        /// </summary>
        public virtual Merchant Merchant { get; set; }
    }
}
